package com.zhangtai.modules.entity.system;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

	

/**
 * 系统日志
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-08-19 14:13:51
 */
@Data
@TableName("sys_log")
public class LogEntity implements Serializable {
	private static final long serialVersionUID = 1L;

			/**
		 * 
		 */
				@TableId
		@JsonDeserialize(using = LongJsonDeserializer.class)
		@JsonSerialize(using = LongJsonSerializer.class)
			private Long id;
			/**
		 * 用户名
		 */
			private String username;
			/**
		 * 用户操作
		 */
			private String operation;
			/**
		 * 请求方法
		 */
			private String method;
			/**
		 * 请求参数
		 */
			private String params;
			/**
		 * 执行时长(毫秒)
		 */
			@JsonDeserialize(using = LongJsonDeserializer.class)
			@JsonSerialize(using = LongJsonSerializer.class)
			private Long time;
			/**
		 * IP地址
		 */
			private String ip;
			/**
		 * 创建时间
		 */
			private Date createDate;

		/**
		 * 0:正常，1：删除
		 */
		private Integer isDelete;


}
